package com.tanhua.app.controller;

import com.tanhua.app.service.TestSoulService;
import com.tanhua.model.pojo.QuestionNaire;
import com.tanhua.model.vo.QuestionNaireVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/testSoul")
public class TestSoulController {

    @Autowired
    private TestSoulService testSoulService;

    @GetMapping
    public ResponseEntity questionNaireList(){
        List<QuestionNaireVo> list =  testSoulService.questionNaireList();
        return ResponseEntity.ok(list);
    }

}
